package demo3;

public class Dog implements IRunable, ISwimable{
    public String name;

    public Dog(String name) {
        this.name = name;
    }

    public void run() {
        System.out.println(this.name + "正在跑");
    }

    public void swim() {
        System.out.println(this.name + "正在游泳");
    }

}
